package com.dragon.logical.service.contract;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dragon.repository.entity.Repair;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 维修单据表 服务类
 * </p>
 *
 * @author sy
 * @since 2023-12-05
 */
public interface IRepairService extends IService<Repair> {

    Page<Repair> selectListPage(String name, Integer status, Integer page, Integer limit);

    Repair selectDetailById(Integer id);

    @Transactional(rollbackFor = RuntimeException.class)
    void addRepair(Repair repair);

    @Transactional(rollbackFor = RuntimeException.class)
    void delete(Integer id);

    void updateStatus(Integer id, Integer status);
}
